﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>

    <p>With CrossTalk inDelphi you handle .NET events in the same way you are used to. For example in the WPF Demo you can see the following code used to handle a WPF button control click event:</p><p>
<code>procedure TWPFDemo.ButtonClicked(const aSender: TCTObject; const aE: CTPresentationCore.RoutedEventArgs); </code></p><p><code>....</code></p><p><code>LButton.OnClick := ButtonClicked;</code></p>

</body>
</html>
